import request from '@/utils/request'

// 查询用户信息列表
export function listMember(query) {
  return request({
    url: '/business/member/list',
    method: 'get',
    params: query
  })
}

// 查询用户信息所有列表
export function listAllMember(query) {
  return request({
    url: '/business/member/listAll',
    method: 'get',
    params: query
  })
}

// 查询用户信息详细
export function getMember(id) {
  return request({
    url: '/business/member/getInfo/' + id,
    method: 'get'
  })
}

// 新增用户信息
export function addMember(data) {
  return request({
    url: '/business/member/add',
    method: 'post',
    data: data
  })
}

// 修改用户信息
export function updateMember(data) {
  return request({
    url: '/business/member/edit',
    method: 'post',
    data: data
  })
}

// 删除用户信息
export function delMember(id) {
  return request({
    url: '/business/member/remove/' + id,
    method: 'get'
  })
}
